import { Module, Global } from '@nestjs/common';
import { ToolService } from './services/tool/tool.service';
import { SmsService } from './services/sms/sms.service';
import { InitDbService } from './services/init-db/init-db.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CategoryEntity } from '../blog/entities/category.entity';

@Global()
@Module({
    imports: [
        TypeOrmModule.forFeature([
          CategoryEntity,
        ])
      ],
    providers: [ToolService, SmsService, InitDbService],
    exports: [ToolService,SmsService]
})
export class SharedModule {}
